/**
 * Copyright 2005 The Apache Software Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.edi.runtime.component
{
	import mx.containers.Canvas;
	import mx.controls.ProgressBar;
	import flash.external.ExternalInterface;
	
	/**
	 * 等待滚动窗体 
	 * 
	 */	
	public class EDIProgressWindow //extends Canvas
	{
//		private var prog:ProgressBar
		public function EDIProgressWindow()
		{
			super();
//			width=200;
//			height=20;
//			prog=new ProgressBar;
//			prog.setStyle("fontSize","12");
//			prog.indeterminate=true;
//			prog.labelPlacement="center";
//			prog.width=200;
//			prog.height=20;
//			prog.label="传输...";
//			prog.x=0;
//			prog.y=0;
//			this.addChild(prog);
		}
		
		/**
		 * 显示等待窗体 
		 * 
		 */		
		public function show():void 
		{
//			EDIPopUpManager.addPopUp(this,null,true);
			ExternalInterface.call("setWaitWindowVisible","visible");
		}
		/**
		 * 关闭等待窗体 
		 * 
		 */		
		public function close():void
		{
			
			ExternalInterface.call("setWaitWindowVisible","hidden");
//			EDIPopUpManager.removePopUp(this);
		}
		
		
		
	}
}